package com.lazydong.apiforward.client.gui.constant;

import java.io.File;

public interface CommonConstant {
    String APP_VERSION = "1.0";
    String CURRENT_DIR = System.getProperty("user.dir");
    String UPDATE_DIR = CURRENT_DIR + File.separator + "update";
    String UPDATE_EXE = CURRENT_DIR + File.separator + "update" + File.separator + "ApiForwardClientUpdate.exe";
    String UPDATE_PID = UPDATE_DIR + File.separator + "ApiForwardClientUpdate.pid";
    String UPDATE_SUCCESS_FLAG = UPDATE_DIR + File.separator + "update_success.lock";

    // 给软件定义两个域名，本地域名、以及服务器的域名
    String ApiForwardLocalDomain = "www.apiforward.com";
    String ApiForwardServerDomain = "www.apiforward.server.com";

    // hosts文件 开始，结尾标识
    String hostsStartSign = "# ApiForward hosts start sign";
    String hostsEndSign = "# ApiForward hosts end sign";
    // 服务器地址
    String serverIpPortFile = CURRENT_DIR + File.separator + "服务器地址.txt";
    String serverIpPortDef = "https://127.0.0.1:44945";

    String getAppNewVersion = "/update/getAppNewVersion";
    String downUpdateExe = "/update/downClientUpdateExeZip";
}
